import request from '@/utils/request'

// 查询食品质量安全标准列表
export function listOpmFoodSafeNorm(query) {
  return request({
    url: '/food/opmFoodSafeNorm/list',
    method: 'get',
    params: query
  })
}

// 查询食品质量安全标准详细
export function getOpmFoodSafeNorm(id) {
  return request({
    url: '/food/opmFoodSafeNorm/' + id,
    method: 'get'
  })
}

// 新增食品质量安全标准
export function addOpmFoodSafeNorm(data) {
  return request({
    url: '/food/opmFoodSafeNorm',
    method: 'post',
    data: data
  })
}

// 修改食品质量安全标准
export function updateOpmFoodSafeNorm(data) {
  return request({
    url: '/food/opmFoodSafeNorm',
    method: 'put',
    data: data
  })
}

// 删除食品质量安全标准
export function delOpmFoodSafeNorm(id) {
  return request({
    url: '/food/opmFoodSafeNorm/' + id,
    method: 'delete'
  })
}
